@import '~antd/es/style/themes/default.less';
@import './pages/less/config.less';

html,
body,
#root {
  height: 100%;
  color: #333;
  --antd-wave-shadow-color: #ccc;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}
.operation {
  > span {
    padding: 10px;
    color: #333;
    cursor: pointer;
    &::after {
      position: relative;
      top: 1px;
      left: 10px;
      display: inline-block;
      width: 1px;
      height: 12px;
      background: #e5e5e5;
      content: '';
    }

    &:hover {
      color: #f65401;
    }

    &:last-child::after {
      display: none;
    }
  }
}

// 调整布局颜色
.ant-pro-global-header-layout-mix {
  padding: 0 60px 0 20px !important;
  background: #fff !important;
}
.ant-layout-header {
  height: 70px !important;
}
.ant-pro-global-header-logo {
  img {
    width: 40px;
    height: 40px !important;
  }

  h1 {
    color: #333 !important;
    font-weight: normal !important;
    font-size: 20px;
    font-family: SourceHanSansSC-regular;
    text-align: left;
  }
}
.ant-pro-sider-fixed {
  padding-top: 70px !important;
}

.ant-table-tbody {
  tr {
    &:nth-child(even) {
      background-color: #f0f2f1;
    }

    &:nth-child(odd) {
      background-color: #fff;
    }
  }
}

.col_dataIndex_1 {
  text-align: center;
  > div {
    width: 40px !important;
    margin: 0 auto;
    color: #faad14;
    background: #ffefe8;
    border-radius: 15px;
  }
}

// 用户信息
.get_user_info {
  display: flex;

  .user_data_name {
    display: flex;
    align-items: center;
  }
  .welome {
    margin-right: 10px;
    color: #898989;
  }

  .user_name {
    margin-right: 40px;
    margin-left: 5px;
    &::after {
      position: relative;
      top: 3px;
      right: -17px;
      display: inline-block;
      width: 1px;
      height: 16px;
      background: #e4e4e4;
      content: '';
    }
  }

  .logout {
    cursor: pointer;
  }
}

// 按钮颜色
// 提交按钮
.btn_red {
  .btnColor(#F65401,#f5f5f5);
  min-width: 80px;
  background: #f5f5f5;
}
// 取消按钮
.btn_cold {
  .btnColor(#989898,#f5f5f5);
  min-width: 80px;
  background: #f5f5f5;
}

.img_model {
  text-align: center;

  img {
    width: 500px;
  }
}

//滚动条样式优化
div::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  /**/
}
div::-webkit-scrollbar-track {
  background: rgb(239, 239, 239);
  border-radius: 2px;
}
div::-webkit-scrollbar-thumb {
  background: #bfbfbf;
  border-radius: 10px;
}
body::-webkit-scrollbar {
  width: 10px;
  background: rgb(239, 239, 239);
}
body::-webkit-scrollbar-thumb {
  background: #bfbfbf;
  border-radius: 10px;
}

.add_regime {
  .add_user {
    height: 9vh;
    font-size: 20px;
    line-height: 9vh;
    text-align: center;
  }
  .add_user_form {
    width: 345px;
    margin: 0 auto;
    padding: 20px 0;

    .regime_input {
      width: 200px;
    }

    .regime_inputs {
      width: 280px;
    }
  }

  .regime_btns {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;

    > .ant-btn {
      margin: 0 10px;
    }
  }

  .hr {
    width: 100%;
    height: 1px;
    border-color: #ccc;
    border-bottom: 1px dashed;
  }
}

.works_table {
  background: #fff;
  .hr {
    width: 100%;
    height: 1px;
    margin-bottom: 24px;
    border: 1px dashed rgba(228, 228, 228, 100);
  }
  .hrs {
    width: 100%;
    height: 1px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(228, 228, 228, 100);
  }
  .works_form {
    width: auto;
    margin-top: 20px;

    > .ant-form-item {
      width: 60%;
    }

    .printingSurfaceImg {
      .ant-upload,
      .ant-upload-list-picture-card-container {
        width: 320px;
        height: 320px;
      }
    }

    .work_form_upload_list {
      display: flex;
      & > p {
        min-width: 15%;
        text-align: right;
      }
      .ant-upload,
      .ant-upload-list-picture-card-container {
        width: 240px;
        height: 320px;
      }
    }

    .printing {
      .ant-input-affix-wrapper {
        width: 80%;
      }
    }
  }
  .export_list {
    padding: 20px;
    .span_info {
      margin-bottom: 20px;
      color: #cbcbcb;
    }
    .ant-upload,
    .ant-upload-list-picture-card-container {
      width: 150px;
      height: 150px;
    }
  }
  .add {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    > button {
      margin: 0 10px;
    }
  }
  .works_form_row {
    width: 80%;
    margin-top: 24px;
  }
}

.regime_select {
  padding: 10px 20px;
  background-color: #fff;
}

.entry-info-modal {
  .ant-modal-title {
    text-align: center;
  }
  .ant-btn {
    width: 100% !important;
  }
  .entry-info-item-left {
    color: #8c8c8c;
    text-align: right;
  }
  .entry-info-item-pic {
    float: left;
    width: 100px;
    height: 100px;
    padding-right: 5px;
    padding-bottom: 5px;
    overflow: hidden;
  }
  .entry-info-item-pic-clear {
    clear: both;
  }
}
